<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Powered by 9416.cn</title>


<!--#include file="../inc/conn.asp"-->

<script type="text/javascript" src="../ui/jquery.js"></script>
 <link rel="stylesheet" href="../ui/layui/css/layui.css" type="text/css"  />

<script type="text/javascript" src="../ui/layui/layui.js"></script>

<script type="text/javascript" src="../ui/pc.js"></script>

</head>


<body>

  
   <div class="mec_div" style="padding-top:0px; padding-bottom:20px;padding-left:20px;padding-right:20px;">
     <div class="layui-tab layui-tab-brief">
<ul class="layui-tab-title site-demo-title">
   <li ><a href="info.asp">基本资料</a></li>
     <li ><a href="set.asp">设置</a></li>
    <li ><a href="email.asp">邮箱</a></li>
    <li ><a href="type_list.asp">分类</a></li>
  <li ><a href="skin.asp">皮肤</a></li>
  <li class="layui-this"><a href="version.asp">授权</a></li>
   
  </ul>
  </div>
 <%jianbook.qxmsg()
sql="select * from [info]"
  rs.open sql,conn,3,3%>
        <form id="form1" name="form1" class="layui-form"  method="post" action="?act=add">
  	   <table width="100%" border="0" cellspacing="0" cellpadding="0"  >
    <tr>
      <td width="100" height="50">源码版本</td>
      <td>jianbook<%=jianbook_version%></td>
    </tr>
      <tr>
      <td height="50">是否授权</td>
      <td><% if (jianbook.verification()) then response.Write "<font color=green>是</font>" else response.Write "<font color=red>网站没有授权，请联系book.9416.cn授权</font>" end if%></td>
      
    </tr>
    <tr>
      <td height="50">授权码：</td>
      <td> <input name="key" type="text" class="layui-input" style="width:200px"   placeholder="输入授权码 "/></td>
      
    </tr>
    
    
       
        <tr>
          <td height="50"></td>
          <td><input type="submit" class="layui-btn" value="验证" lay-submit="lay-submit" /></td>
         </tr>
       </table>
 
  </form>
    
 
 
	
</div> 
 

<%

  if request("act")="add" then
  jianbook.demomsg()

SendURL ="http://book.9416.cn/api/auz/ajax.asp?act=auz&key="&request.form("key")

 Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP") 
 objXMLHTTP.Open "post", SendURL, False
  objXMLHTTP.Send
  getPageContent = BytesToBstr(objXMLHTTP.ResponseBody,"utf-8")  

  Set obj = parseJSON(getPageContent)
  
 if obj.zt=1 then
 
 rs("key")=request.form("key")
 rs.update
 end if 
    

jianbook.mgbox obj.info,"version.asp"



  Set objXMLHTTP = Nothing 



	

end if
	

 
 
%>

		

</body>

</html>
